package com.gome.ocean.service.datax;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.datasource.SQLUploadBean;

/**
 * @author zhangguoqing 2016年10月26日 下午8:30:20
 * @since 5.0.0
 */
public interface ISQLUploadService {

    public boolean insert(SQLUploadBean bean);

    public boolean update(SQLUploadBean bean);

    public boolean delete(Long id);

    public SQLUploadBean getBeanByMap(Map<String, Object> map);

    public Page<SQLUploadBean> getListsBeanByMap(Map<String, Object> map, Integer pageNum, Integer pageSize);

    public Page<SQLUploadBean> getListsBeanByProjects(List<String> projects, String commitUserEmail, String startTime,
                                                      String endTime, Integer pageNum, Integer pageSize);

    public Page<SQLUploadBean> getAllListsBean(Integer pageNum, Integer pageSize);
}
